import http from "@/config/request";

// 获取审批统计数据
export function getApprovalStatistics() {
  return http.get('/admin/dashboard/echarts/approval-statistics');
}

// 获取部门对比数据
export function getDepartmentComparison() {
  return http.get('/admin/dashboard/echarts/department-comparison');
}


// 获取考勤状态分布数据
export function getStatusDistribution() {
  return http.get('/admin/dashboard/echarts/status-distribution');
}

// 获取基础指标统计数据
export function getSummaryData() {
  return http.get('/admin/dashboard/echarts/summary');
}

// 获取出勤趋势图数据
export function getTrendData(timeRange) {
  return http.get(`/admin/dashboard/echarts/trend?timeRange=${timeRange}`);
}

// 获取异常预警数据
export function getWarningData() {
  return http.get('/admin/dashboard/echarts/warning');
}
